import api from "@/libs/request";

/**
 * 添加满减活动
 * @param data
 */
export const addFull = (data: any) => {
  return api.post(`/discount/manager/full/scale/add`, data);
};

/**
 * 获取满减活动
 */
export const getFullActivity = (data: any) => {
  return api.get(`/discount/manager/full/scale/list`, data);
};

/**
 * 满减活动详情
 */
export const fullActivityDet = (id: any, data: any) => {
  return api.get(`/discount/manager/full/scale/get/${id}`, data);
};

/**
 * 修改满减活动
 */
export const updateFullActivity = (data: any) => {
  return api.put(`/discount/manager/full/scale/update`, data);
};

/**
 * 删除满减活动
 */
export const delFullActivity = (ids: any, data: any) => {
  return api.delete(`/discount/manager/full/scale/delete/${ids}`, data);
};

/**
 * 关闭活动
 */
export const offFullActivity = (status: any, data: any) => {
  return api.put(`/discount/manager/full/scale/changeStatus/${status}`, data);
};
